package 数组Array.一维数组.test04;

public class ArrayTest04 {
    public static void main(String[] args) {
        int[] a = {1,2,3,4};
        printArray(a);
        System.out.println("========================================");
        printArray(new int[]{3,3,3,4});


        System.out.println("========================================");
        int[] a2 = new int[3];
        printArray(a2);
        System.out.println("========================================");
        printArray(new int[3]);
    }
    public static void printArray(int[] array){
        for(int i = 0;i < array.length;i++){
            System.out.println(array[i]);
        }
    }
}
